# Maintainer: Caleb Connolly <caleb@connolly.tech>
# Contributor Caleb Connolly <caleb@connolly.tech>
pkgname=tfblib
pkgver=0.1.1
pkgrel=1
pkgdesc="A Tiny Linux Framebuffer Library"
url="https://github.com/vvaltchev/tfblib"
arch="all"
license="BSD-2-Clause"
makedepends="cmake linux-headers samurai"
options="!check" # no testsuite
source="tfblib-$pkgver.tar.gz::https://github.com/vvaltchev/tfblib/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
f11072fa6ab50b7b532ff1e45d3e888fe83db40cb0dd44ccaff3d558c50d9bfd819c63a2eea79dc212e40a739606ac01e7de89470e41400638fd1740d9f2cdf3  tfblib-0.1.1.tar.gz
"
